/*
 * 百度在线网络技术（北京）有限公司拥有本软件版权2020并保留所有权利。
 * Copyright 2020, Baidu.com,Inc 2:Baidu Online Network Technology (Beijing) Co.,Ltd,
 * All rights reserved.
 */

package com.azdebugit.moshi.test.learn.proxy.cjlibproxy2;

import java.lang.reflect.Method;
 
import net.sf.cglib.proxy.MethodInterceptor;
import net.sf.cglib.proxy.MethodProxy;
 
public class Mishu implements MethodInterceptor{
     
    @Override
    public Object intercept(Object arg0, Method arg1, Object[] arg2, MethodProxy arg3) throws Throwable {
        System.out.println("预约时间");
        //invoke()调用子类重写的方法
//      arg1.invoke(arg0, arg2);
//      arg3.invokeSuper(arg0, arg2);
        System.out.println("_______________");
        Object result = arg3.invokeSuper(arg0, arg2);
        System.out.println("_______________");
        System.out.println("备注");
        return result;
    }
}